import { createRouter, createWebHistory } from 'vue-router'

<<<<<<< HEAD
const EnrollmentRegister = () => import('../views/EnrollmentRegister.vue')
const EnrollmentQuery = () => import('../views/EnrollmentQuery.vue')
const UnitManagement = () => import('../views/UnitManagement.vue')
const Layout = () => import('../views/Layout.vue')

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: Layout,
      children: [
        { path: '', redirect: '/enrollment/register' },
        { path: '/enrollment/register', component: EnrollmentRegister, meta: { title: '参保登记' } },
        { path: '/enrollment/query', component: EnrollmentQuery, meta: { title: '参保信息查询' } },
        { path: '/units', component: UnitManagement, meta: { title: '参保单位管理' } }
      ]
    }
  ]
})

router.afterEach((to) => {
  if (to.meta && to.meta.title) {
    document.title = `${to.meta.title} - 超级无敌嘎嘎权威应当的多民族社保政务平台`
  }
})

export default router


=======
const Register = () => import('../views/Register.vue')
const Login = () => import('../views/Login.vue')
const Profile = () => import('../views/Profile.vue')
const PasswordReset = () => import('../views/PasswordReset.vue')
const AuthWizard = () => import('../views/AuthWizard.vue')

const routes = [
  { path: '/', redirect: '/auth' },
  { path: '/auth', name: 'AuthWizard', component: AuthWizard },
  { path: '/register', name: 'Register', component: Register },
  { path: '/login', name: 'Login', component: Login },
  { path: '/profile', name: 'Profile', component: Profile },
  { path: '/reset-password', name: 'PasswordReset', component: PasswordReset }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 
>>>>>>> ad9d014b620c4e6e76229685381f846266fb2107
